New Functions in Week 7

geom_ribbon

{GGPLOT2}

Generates an area plot

par

{graphics}

Set parameters of the plotting device

min

{base}

Get minimum of a vector

expression

{base}

Used in plots to add symbols to axes

dnorm

{stats}

Density distribution for the normal distribution

hist

{graphics}

Plot a simple histogram

which.max

{base}

return index of the largest value in a vector

median

{stats}

Get median of a vector

nrow

{base}

Get number of rows of a data frame

max

{base}

Get maximum of a vector

element_text

{GGPLOT2}

Customise text in GGPLOT2

sd

{stats}

Get standard deviation of a vector

sum

{base}

Get sum of numeric values or a vector

data.frame

{base}

Create a data.frame from vectors

element_line

{GGPLOT2}

Customise line appearance

ggsave

{ggplot2}

Saves the last ggplot or a specified ggplot object to a file

var

{stats}

Calculate variance

length

{base}

Returns number of elements in an object

boxplot

{graphics}

Plot a simple box plot

range

{base}

Return range of values

element_blank

{GGPLOT2}

This theme element draws nothing, and assigns no space

print

{base}

Print object to the console

table

{base}

Obtain frequency table of a variable/cross-tabulation of two variables

theme_classic

{GGPLOT2}

A minimalistic theme with no gridlines

quantile

{stats}

Obtain empirical quantiles of a vector

geom_histogram

{GGPLOT2}

Generates a histogram

summary

{base}

Obtain summary statistics or detailed regression output

seq

{base}

Create a sequence

plot

{graphics}

Generic function from base R to produce a plot

ls

{base}

Return a vector of character strings giving the names of the objects in the specified environment

labs

{GGPLOT2}

Customise labels in GGPLOT2

rm

{base}

Remove objects

scale_y_continuous

{GGPLOT2}

Customise continuous y axis

geom_density

{GGPLOT2}

Generates a density plot

ordered

{dplyr}

Create an ordered factor

ggplot

{GGPLOT2}

Create a ggplot graph

theme

{GGPLOT2}

Set theme for GGPLOT2

aes

{GGPLOT2}

Construct aesthetic mapping of a ggplot graph

subset

{base}

Return subsets of vectors, matrices or data frames which meet conditions.

with

{base}

evaluate expression in the context of a data frame

scale_x_continuous

{GGPLOT2}

Customise continuous x axis

geom_segment

{GGPLOT2}

Generates a line segment or curve

The end!